import { Controller, Get, Post, Body, Patch, Param, Delete, Query, Headers, HttpCode } from '@nestjs/common';
import { CatsService } from './cats.service';
import { CreateCatDto } from './dto/create-cat.dto';

@Controller('cats')
export class CatsController {
    constructor(private readonly CatsService: CatsService) { }

    @Post('/post')
    create(@Body() createCatDto: CreateCatDto) {
        return this.CatsService.create(createCatDto);
    }

    @Get()
    findAll() {
        return this.CatsService.findAll();
    }
}



